#include "reg24le1.h"
#define RX  P00
#define LED	P02
void IOCNFG()
{
P0DIR|=BIT_0;
P0DIR&=(~BIT_2);
}
void main()
{
IOCNFG();
while(1)
{
if(RX)
{
LED=1;
}
else 
{
LED=0;
}
}
}